package com.itheima.health.service.impl;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.health.entity.TOrder;
import com.itheima.health.mapper.TOrderMapper;
import com.itheima.health.service.ITOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cpanda
 * @since 2024-01-29
 */
@Service
public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> implements ITOrderService {
    @Autowired
    TOrderMapper tOrderMapper;

    @Override
    public Integer countSetmal(Integer id) {
        Integer count = tOrderMapper.selectStem(id);
        return count;
    }
}
